#include "BasicFrame.h"
#include "../../../RenderEngine/Inc/RenderConsole.h"

BasicFrame::BasicFrame():color(0xff0000ff) //set background blue..
{   
	mStateName = "BasicFrame";
}

BasicFrame::~BasicFrame()
{
	
}

bool BasicFrame::Init()
{
	RenderConsole::Instance()->SetClearColor(color);
	return true;
}

void BasicFrame::Update(float deltaTime)
{

}

void BasicFrame::Render()
{
	RenderConsole::Instance()->LockBackBuffer();
	RenderConsole::Instance()->ClearBackBuffer();
	RenderConsole::Instance()->BresenhamLine(0, 0, 639, 479, 0xffff0000);
	RenderConsole::Instance()->UnlockBackBuffer();
	RenderConsole::Instance()->SwapBackBuffer();
}

void BasicFrame::Release()
{

}


